﻿using System;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZLWeb.WebApiEntityBase.Cache
{
    public class Jltycrmkyzklbt
    {
        private string _zklbmc=string.Empty;
        private string _zklbsbm = string.Empty;
        private int _zklbqyday;

        [JsonConverter(typeof(ChinaDateTimeConverter))]
        private DateTime? _zklbshixrq;


        public int zklbid { get; set; }

        public string zklbmc
        {
            get { return _zklbmc; }
            set { _zklbmc = value; }
        }

        public string zklbsbm
        {
            get { return _zklbsbm; }
            set { _zklbsbm = value; }
        }

        /// <summary>
        /// 权益时长（单位：天）
        /// </summary>
        public int zklbqyday
        {
            get { return _zklbqyday; }
            set { _zklbqyday = value; }
        }


        public short kzkhsign { get; set; }


        /// <summary>
        /// 失效日期：该字段为服务扩展字段(用于开户获取账户默认折扣失效日期，不需加载至缓存)
        /// </summary>
        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime? zklbshixrq
        {
            get { return _zklbshixrq; }
            set { _zklbshixrq = value; }
        }
    }

    //public class JltycrmkyzklbtMapper : ClassMapper<Jltycrmkyzklbt>
    //{
    //    public JltycrmkyzklbtMapper()
    //    {
    //        Table("#jltycrmkyzklbt");
    //        Map(f => f.zklbid).Column("zklbid");
    //        Map(f => f.zklbmc).Column("zklbmc");
    //        Map(f => f.zklbsbm).Column("zklbsbm");
    //        Map(f => f.kzkhsign).Column("kzkhsign");
    //    }
    //}
}
